package com.xuecheng.order;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;

@SpringBootApplication
@EnableDiscoveryClient
@ComponentScan(basePackages = {
        "com.xuecheng.order",
        "com.xuecheng.web",
        "com.xuecheng.mybatis",
})
@MapperScan("com.xuecheng.order.mapper")
@EnableFeignClients(basePackages = "com.xuecheng.*.api")
@EnableScheduling // 开启定时任务注解支持
public class OrderApplication  {

    public static void main(String[] args) {
        SpringApplication.run(OrderApplication.class, args);
    }
}
